import datetime


class Model:
    __slots__ = ("id", "created", "updated", "deleted")
    id: int
    created: datetime.datetime
    updated: datetime.datetime
    deleted: int

    def __repr__(self) -> str:
        return getattr(self, "__tablename__", type(self).__name__)


class Admin(Model):
    __slots__ = ("email", "password")
    email: str
    password: str

    def __init__(self, email: str, password: str) -> None:
        self.email = email
        self.password = password


class Articles(Model):
    __slots__ = ("draft", "title", "desc", "content", "view", "comment")
    draft: int
    title: str
    desc: str
    content: str
    view: int
    comment: int


